#include<stdio.h>
#include<stdlib.h>

//#define EOF -1
//#define EXIT_SUCCESS 0

int main()
{

	FILE *fin,*fout;
	fin=fopen("A.txt","r");
	fout=fopen("B.txt","w");

	int x;
	while(EOF!=fscanf(fin,"%d",&x))
		fprintf(fout,"%d\n",x);

	fclose(fin);
	fclose(fout);
	return EXIT_SUCCESS;

}